package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrGroupEntity;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author tianchao
 * @email 455433520@qq.com
 * @date 2020-05-30 11:36:33
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页查询
     * @param params {page:"",limit:"",sidx:"id" //排序字段 ,order:'asc/desc', key:"" 关键字检索}
     * @param catelogId 分类id
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 查询当前分类下的所有属性分组 附带分组下的属性
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

